Title: Creating a Pay Your Bill System with WooCommerce

Publish Date: Sat, 25 Oct 2014 10:01:18 +0000

Categories: Uncategorized

Content:

Some users use an online payment system for their bills, asking their customers to go on the website and pay the bill directly there. In this tutorial, you will learn how to create this system in WooCommerce.







Table of contentsRequired PluginsSystem ConfigurationProduct Configuration



Required Plugins



You need two premium plugins to create this system:




Name Your Price



WooCommerce Product Add-ons




System Configuration



There are a few steps before being able to accept payments for your bills. After installing Name your Price and Product Add-ons, go to Name your Price configuration page in WooCommerce > Settings > Name your price and set the option's value to your needs.



Product Configuration



Now, create a product that will be used by the Pay Your Bill system.



Go to Products > Add New and set all the basic configurations of the product (title, description, category, tags, etc.). You can use both Simple products or Variable products, depending on what you need. 



Next to the Product type dropdown, you have some checkboxes. After activating the Name your Price plugin, you have a new checkbox named Name Your Price. Be sure to select it.



Also leave blank the fields Suggested Price and Minimum Price. You can't set them because you do not have a suggested price, and you do not know the minimum bill price that the customer will pay.



For this purpose, you must know which bill the customer will pay. This is why you need the plugin Product Add-ons.



Select the tab Add-ons in the single product admin page and create a New Add-ons Group.



I used only the Account number and Bill number fields, but you can add as many as you need. Also, you can set an additional fee for each option if you want, using the Option price field available in each add-on.



Save the product and publish it.



Now, the customer can set the quantity of bills to pay. This probably is not really useful in a lot of systems. If you want to disable it and allow the customer to pay only one bill per order, go to your product settings, select Inventory, and select the option Sold Individually.



You are now ready to accept payments for your bills online.



If you want to have more security so that customers are not using the wrong data on the Checkout page, I wrote an article on how to add a Confirm Email field on Checkout.
